package com.itbaiwei.testday01.day01.annotation;

import java.lang.reflect.Type;

/**
 * Class: MyElementType
 * Description:
 * Author: haijun.xu
 * Date: 2025/4/24 21:18
 */
enum My1ElementType{
    TYPE("接口,类,枚举"),
    FIELD("字段，枚举的常量"),
    METHOD("方法");
    private String chineseName;
    My1ElementType(String name){
        this.chineseName=name;
    }
    public void show(){
        System.out.println("选择的类型是:"+chineseName);
    }
}
public class MyElementType {
    public static void main(String[] args) {
        My1ElementType type = My1ElementType.TYPE;
          type.show();
    }
}
